<template>
	<view>
		{{ZHwe}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				weight:1200
			}
		},
		methods: {
			
		},
		computed:{
			ZHwe:function(){
				return this.weight>1000 ? (this.weight/1000)+'kg':this.weight+'g';
			}
		}
	}
</script>

<style>

</style>
